# -*- coding: utf-8 -*-
# time: 2025/8/9 16:16
# file: urls.py
# author: kai
# email: 1071664616@qq.com

"""
用户模型urls
"""
from django.urls import path
from . import views

urlpatterns = [
    # 认证相关
    path('admin/login/', views.AdminLoginView.as_view(), name='admin-login'),
    path('login/', views.PhoneLoginView.as_view(), name='phone-login'),
    path('generate-code/', views.GenerateVerificationCodeView.as_view(), name='generate-code'),
    path('logout/', views.user_logout, name='user-logout'),

    # 用户管理相关
    path('admin/create/', views.AdminCreateView.as_view(), name='admin-create'),
    path('users/', views.UserListView.as_view(), name='user-list'),
    path('profile/', views.UserProfileView.as_view(), name='user-profile'),
    path('users/<int:pk>/', views.UserDetailView.as_view(), name='user-detail'),
]
